#include<iostream>
#include<cstdio>
using namespace std;
int main(){
  int a,b,n;
  cin>>n;
  while (n)
  {
    cin>>a>>b;
    cout<<a+b<<endl;
    n--;
  }
}